<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body>div{
            margin-top: 50px;
        }
    </style>
</head>
<body>
<div>
    {{info}}
    <!--单向绑定-->
    <input type="text" v-bind:value="info">
    <!--双向绑定-->
    <input type="text" v-model="info">
    <hr>
    用户名：<input type="text" v-model="user.username"><br>
    密码：<input type="password" v-model="user.password"><br>
</div>


<script src="js/vue.min.js"></script>
<script>
  let v = new Vue({
    el:"body>div",
    data:{
      info:"双向绑定测试",
      user:{username:"",password:""}
    }
  })
</script>

</body>
</html>